            {include file="common/header,common/navbar,common/top"}

            <div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-sm-4">
                    <h2>欢迎使用...后台管理系统！</h2>
                    <ol class="breadcrumb">
                        <li>
                            <a href="index.html">系统设置</a>
                        </li>
                        <li class="active">
                            <strong>编辑配置</strong>
                        </li>
                    </ol>
                </div>
            </div>

            <!-- 内容开始 -->
            <div class="wrapper wrapper-content">
                <div class="row">                 
                    <div class="col-lg-12">
                            <div class="ibox float-e-margins">
                                <div class="ibox-title">
                                    <h5>编辑配置</h5>
                                    <div class="ibox-tools">
                                    <a href="{:url('conf/lst')}" class="btn btn-primary">配置列表</a>

                                        <a class="collapse-link">
                                            <i class="fa fa-chevron-up"></i>
                                        </a>
                                        <a class="dropdown-toggle" data-toggle="dropdown" href="form_basic.html#">
                                            <i class="fa fa-wrench"></i>
                                        </a>
                                        <ul class="dropdown-menu dropdown-user">
                                            <li><a href="form_basic.html#">Config option 1</a>
                                            </li>
                                            <li><a href="form_basic.html#">Config option 2</a>
                                            </li>
                                        </ul>
                                        <a class="close-link">
                                            <i class="fa fa-times"></i>
                                        </a>
                                    </div>      
                                </div>
                                <div class="ibox-content">
                                    <form class="form-horizontal" action="" method="post">
                                        <input type="hidden" name="id" value="{$confs->id}">
                                        <div class="form-group">
                                            <label class="col-lg-2 control-label">中文名称</label>
                                            <div class="col-lg-5"><input type="text" placeholder="" class="form-control" name="cname" value="{$confs->cname}"></div>
                                            <div class="col-lg-2"><span class="label label-danger">*必填</span></div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-lg-2 control-label">英文名称</label>
                                            <div class="col-lg-5"><input type="text" placeholder="" class="form-control" name="ename" value="{$confs->ename}"></div>
                                            <div class="col-lg-2"><span class="label label-danger">*必填</span></div>
                                        </div>
                                        <div class="form-group"><label class="col-lg-2 control-label">配置类型</label>
                                            <div class="col-lg-5">
                                                <select class=" form-control select2-hidden-accessible" tabindex="-1" aria-hidden="true" name="dt_type">
                                                    <option value="1"{if condition="$confs->dt_type eq 1"}selected="selected"{/if}>单行文本</option>
                                                    <option value="2"{if condition="$confs->dt_type eq 2"}selected="selected"{/if}>单选按钮</option>
                                                    <option value="3"{if condition="$confs->dt_type eq 3"}selected="selected"{/if}>复选框</option>
                                                    <option value="4"{if condition="$confs->dt_type eq 4"}selected="selected"{/if}>下拉框</option>
                                                    <option value="5"{if condition="$confs->dt_type eq 5"}selected="selected"{/if}>文本域</option>
                                                    <option value="6"{if condition="$confs->dt_type eq 6"}selected="selected"{/if}>附件</option>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group"><label class="col-lg-2 control-label">配置分类</label>
                                            <div class="col-lg-5">
                                                <select class=" form-control select2-hidden-accessible" tabindex="-1" aria-hidden="true" name="cf_type">
                                                    <option value="1" {if condition="$confs->cf_type eq 1"}selected="selected"{/if}>站点基本信息</option>
                                                    <option value="2" {if condition="$confs->cf_type eq 2"}selected="selected"{/if}>联系方式</option>
                                                    <option value="3" {if condition="$confs->cf_type eq 3"}selected="selected"{/if}>SEO设置</option>
                                                </select>
                                            </div>
                                        </div>                                        
                                        <div class="form-group">
                                            <label class="col-lg-2 control-label">值/默认值</label>
                                            <div class="col-lg-5"><textarea class="form-control" id="message" rows="3" placeholder="" name="value">{$confs->value}</textarea></div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-lg-2 control-label">可选值</label>
                                            <div class="col-lg-5"><textarea class="form-control" id="message" rows="3" placeholder="" name="values">{$confs->values}</textarea></div>
                                        </div>                                        

                                        <div class="form-group">
                                            <div class="col-lg-offset-2 col-lg-10">
                                                <button type="submit" class="btn btn-w-m btn-primary">保存</button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                     </div>
                </div>
            </div>            
            <!-- 内容结束 -->
            {include file="common/footer"}